blktap: Fix qcow2raw.
authorKeir Fraser <keir@xensource.com>
Sat, 31 Mar 2007 11:24:55 +0000 (12:24 +0100)
committerKeir Fraser <keir@xensource.com>
Sat, 31 Mar 2007 11:24:55 +0000 (12:24 +0100)
commitf5db79b2946413bba1eb0c776ce03e4879f3fb67
tree71e1f27f75d4ee5e1480b72f89a010065bdebac0
parentee4af65156102290fac71db0a9c300459cff0a1c
blktap: Fix qcow2raw.

qcow2raw would hang the conversion just short of 100%, because the
final write queue was never being submitted.  If a blktap drivers read
synchronously, then "submit_events" and "complete" variables are
checked before getting set, so the fact that reads have finished is
not noticed, so the final write queue was never submitted.

Note that I have also removed the variables write_complete and
read_complete.  They were unused, and they were also not set correctly
in the synchronous case.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
tools/blktap/drivers/qcow2raw.c